package org.com.lcuiot.security;

import org.com.lcuiot.common.LcuConst;
import org.com.lcuiot.constant.LcuIotConst;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.security.crypto.password.Pbkdf2PasswordEncoder;

/**
 * 密码加密方式
 *
 * @author gaoge
 * @since 2022/10/27 15:29
 */
@Configuration
public class PasswordEncoderConfig {
    @Bean
    public PasswordEncoder passwordEncoder() {
        return new Pbkdf2PasswordEncoder(LcuConst.PASSWORD_ENCODER_SECRET);
    }
}
